package com.jkoss.wine.shop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jkoss.wine.merchant.entity.MerchantProduct;
import com.jkoss.wine.shop.entity.Product;

/**
 * Mapper 接口
 * 
 * @Author Jason
 * @Version 1.0, 2018-10-03
 * @See
 * @Since com.jkoss.wine.shop.mapper
 * @Description: TODO
 */
public interface ProductMapper extends BaseMapper<Product> {

	Integer insertBatch(List items);

	Integer updateBatch(@Param("merchantProduct") MerchantProduct merchantProduct, @Param("list") List<Product> products);

	Integer updateStateByParentId(@Param("state") Integer state, @Param("parentId") String parentId);

}
